const state = {
    order:[],
}
const mutations = {
    SET_ORDER(state,data){
        state.order = data
    }
}
const getters = {
    order: state => state.order
}
const actions = {
    getOrder({state}){
        return new Promise((resolve) => {
            resolve(state.orders)
        })
    },
    setOrder({commit},data){
        commit('SET_ORDER',data)
    },
}
export default {
    namespaced:true,
    state,
    mutations,
    actions,
    getters
}
